{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">
    <input type="hidden" name="id" value="{$data.id}" />
    {:token()}
    <div class="layui-form-item">
        <label class="layui-form-label">车辆编号</label>
        <div class="layui-input-block">
            <input type="text" name="number" lay-verify="required" autocomplete="off" placeholder="区域名称" class="layui-input" value="{$data.number}">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label">所属区域</label>
        <div class="layui-input-block">
            <select name="aid" lay-filter="fieldType" lay-verify="required">
                <option value=""></option>
                {volist name="area" id="vo"}
                <option value="{$vo.id}"  {if $vo.id==$data.aid}selected{/if}>{$vo.name}</option>
                {/volist}
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">状态</label>
        <div class="layui-input-block">
            <input type="radio" name="status" checked  value="1" title="显示" {if $data.status==1}checked{/if}>
            <input type="radio" name="status" value="0" {if $data.status==0}checked{/if} title="下架">
        </div>
    </div>


    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}